package com.example.picofteacherend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.picofteacherend.dto.RegisterDto;
import com.example.picofteacherend.entity.User;

/**
 * @author: zjb
 * @description:
 * @date: 2023/3/19 19:29
 * @version: 1.0
 */
public interface UserService extends IService<User> {
    /**
     * 登录
     * @param no
     * @param password
     * @return
     */
    String login(String no, String password);

    /**
     * 注册
     * @param registerDto
     * @return
     */
    boolean register(RegisterDto registerDto);

    /**
     * 通过编号找人
     * @param no
     * @return
     */
    User findByUserNo(String no);
}
